POV-Ray : Newsgroups : povray.general : rand question : Re: rand question Server Time
5 Aug 2024 04:20:53 EDT (-0400)
  Re: rand question  
From: Tom Melly
Date: 12 Feb 2003 12:22:56
Message: <3e4a82f0$1@news.povray.org>
"Vadim Sytnikov" <syt### [at] rucom> wrote in message
news:3e4a7ee8$1@news.povray.org...

> To be even more specific: think about blocks with scattered trees. If your
> streams' sub-sequences overlap, you may end up with many *equally* (not even
> "similarly") shaped and located trees in different blocks. Hope you got the
> idea...

True - however the sheer length of the stream would make this unlikely. Also,
consider:

#declare R1 = seed(3245);
#declare R2 = seed(7342);

#while(true)
    #declare A1 = rand(R1);
    #declare A2 = rand(R2);
    #declare A3 = rand(R2);
    .....
#end

Because R2 is hit twice, but R1 only once, A1 and A2 will never show the same
sequence (afaik).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.